package com.situying.servlet.welcome;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class WelcomeServlet extends HttpServlet {

	
	private static final long serialVersionUID = 6753215246571841975L;
	
	@Override
	protected void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		WelcomeBean bean = new WelcomeBean();
		request.setAttribute("welcomeBean", bean);
		request.getRequestDispatcher("pages/welcome.jsp").forward(request, response);
	}

}
